﻿@model ABCTile.Models.Tile

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@Html.ActionLink("Example1", "ExampleForRazorView1", "Test") |
@Html.ActionLink("Example2", "ExampleForRazorView2", "Test")

<fieldset>
    <legend>Tile</legend>
    
    <div class="display-label">@Html.LabelFor(model => model.Series)</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Series)
    </div>
    
    @{
        var Price = 25;
        var Description = "Good";
    }

    <table>
        <tr>
            <th>@Html.LabelFor(model => model.SizeX)</th><td>@Html.DisplayFor(model => model.SizeX)</td>
        </tr>
        <tr>
            <th>Size</th><td>@Model.SizeY</td>
        </tr>
        <tr>
            <th>Price</th><td>@Price</td>
        </tr>
        <tr>
            <th>Description</th><td>@Description</td>
        </tr>
        @if (Price > 20)
        {
            <tr>
                <th>Price Level</th><td>High</td>
            </tr>
        }
        else
        {
            <tr>
                <th>Price Level</th><td>Low</td>
            </tr>
        }
    </table>
    <table>
        @for (int i = 0; i < 5; i++)
        {
            <tr>
                <th>@i</th><td>Hello</td>
            </tr>
        }
    </table>

</fieldset>

